using System.Text;

namespace OracleInternal.SqlAndPlsqlParser.LocalParsing
{
	internal class OracleLpConstantExpression : OracleLpSimpleExpression
	{
		public object ExpressionValue
		{
			get;
			set;
		}

		public OracleLpConstantExpression(OracleLpStatementElement parent)
			: base(parent)
		{
			m_vSimpleExpressionType = OracleLpSimpleExpressionType.CONSTANT;
		}

		internal override void ToString(StringBuilder sb)
		{
			base.ToString(sb);
			sb.Append("  Value: ").Append(ExpressionValue.ToString());
		}

		public override string ToString()
		{
			return ExpressionValue.ToString();
		}
	}
}
